package com.my.aslife.module.common;

/**
 * @author mayuan
 * @description TODO
 */
public class IPThreadLocal {

    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static String getGlobalIP(){
        return threadLocal.get();
    }

    public static void setGlobalIP(String ip){

        threadLocal.set(ip);
    }

    public static void remove(){
        threadLocal.remove();
    }

}
